package com.buba.pojo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 杨柳
 * @title SysFun 系统菜单表
 * @date 2024/2/26 13:33
 */
@Data
public class SysFun {
    private Integer nodeId;
    private String displayName;
    private String nodeURL;
    private Integer displayOrder;
    private Integer parentNodeId;
    private List<SysFun> childList;

    // 添加子菜单
    public void addChild(SysFun sysFun) {
        if (this.childList == null)
            this.childList = new ArrayList<>();
        this.childList.add(sysFun);
    }
}
